package com.cloudpivot.receivales.contract.entity.bpmcontract;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * BPM 合同流程实例对象
 * 用于获取数据库
 */
@Data
@Entity
@Table(name = "izch0_newcuscontract")
public class BpmContractV3Entity {

    /**
     * 数据库id
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 创建人部门
     */
    @Column(name="createdDeptId")
    private String createdDeptId;

    /**
     * 创建人员 id
     */
    @Column(name = "creater")
    private String creater;
    /**
     * 流程自动标题
     */
    @Column(name = "name")
    private String name;
    /**
     * 流程编号
     */
    @Column(name = "sequenceNo")
    private String sequenceNo;
    /**
     * 流程 合同标题字段
     */
    @Column(name = "contractTitle")
    private String contractTitle;
    /**
     * 发货公司
     */
    @Column(name = "skipCompany")
    private String skipCompany;
    /**
     * 申请日期
     */
    @Column(name = "application_date")
    private String application_date;
    /**
     * 客户的id(crm)
     */
    @Column(name = "account_id")
    private String account_id;

    /**
     * 客户的名称
     */
    @Column(name = "account_name")
    private String account_name;
    /**
     * 最终客户的名称
     */
    @Column(name = "zuizongname")
    private String zuizongname;
    /**
     * 合同开始时间
     */
    @Column(name = "startDate")
    private String startDate;
    /**
     * 合同结束时间
     */
    @Column(name = "endDate")
    private String endDate;
    /**
     * 合同说明
     */
    @Column(name = "contract_note")
    private String contract_note;
    /**
     * 报价合计
     */
    @Column(name = "offerSum")
    private Double offerSum;
    /**
     * 合同状态
     */
    @Column(name = "contractState")
    private String contractState;
    /**
     * 营销合同分类
     */
    @Column(name = "sale_contract_type")
    private String sale_contract_type;
    /**
     * 合同管理分类(U8自定义字段,crm合同的类别)
     */
    @Column(name = "saleman_contract_type")
    private String saleman_contract_type;
    /**
     * 合同合规分类
     */
    @Column(name = "sale_compliance_type")
    private String sale_compliance_type;
    /**
     * 合同 合规状态
     */
    @Column(name = "compliance_state")
    private String compliance_state;
    /**
     * 存放编码
     */
    @Column(name = "siteNum")
    private String siteNum;
    /**
     * 签订类型
     */
    @Column(name = "signType")
    private String signType;
    /**
     * 合同名称(ERP)
     */
    @Column(name = "ERPTitle")
    private String ERPTitle;
    /**
     * 是否推送
     */
    @Column(name = "pushFlag")
    private Integer pushFlag;
    /**
     * 系统分发
     */
    @Column(name = "systemDishOut")
    private String systemDishOut;
    /**
     * 是否有中标通知书
     */
    @Column(name = "bidLetter")
    private String bidLetter;
    /**
     * 合同签订日期
     */
    @Column(name = "dsignDate")
    private String dsignDate;
    /**
     * 收款方式
     */
    @Column(name = "receipt_note")
    private String receipt_note;
    /**
     * 单一产品报价 JSON
     */
    @Column(name = "offerJson")
    private String offerJson;
    /**
     * 标准套报价 JSON
     */
    @Column(name = "groupJson")
    private String groupJson;

}
